package com.rui.decorator.model;

import com.rui.decorator.obj.FriedRice;

/**
 * @Description: 配料表
 * @Author: ZhangRui
 * @Date: 2023/3/3 9:33
 * @Version: 1.0
 */
public abstract class Ingredients extends FriedRice {

    private FriedRice friedRice;

    public Ingredients(FriedRice friedRice) {
        this.friedRice = friedRice;
    }

    @Override
    public String getDesc() {
        return this.friedRice.getDesc();
    }

    @Override
    public Integer getPrice() {
        return this.friedRice.getPrice();
    }
}
